﻿@model IEstate.Web.Models.EstateViewModel

@{
    ViewBag.Title = "Add";
}

<link rel="stylesheet" type="text/css" href="~/Content/Style.css" />
<div style="margin: 0px 0px 10px 0px; font-family: Cambria; font-size: 25px; font-weight: 300">Estate added</div>

<div>
    @Html.LabelFor(p => p.Street)
    @Html.DisplayFor(p => p.Street, new { @class = "textbox-street" })
</div>
<div>
    @Html.LabelFor(p => p.Bedrooms)
    @Html.DisplayFor(p => p.Bedrooms, new { @class = "textbox-street" })
</div>
<div>
    @Html.LabelFor(p => p.Size)
    @Html.DisplayFor(p => p.Size, new { @class = "textbox-street" })
</div>
<div>
    @Html.LabelFor(p => p.Price)
    @Html.DisplayFor(p => p.Price, new { @class = "textbox-street" })
</div>
<div>
    @Html.LabelFor(p => p.City)
    @Html.DisplayFor(p => p.City, new { @class = "textbox-info" })
</div>
<div>
    @Html.LabelFor(p => p.Option)
    @Html.DisplayFor(p => p.Option, new { @class = "textbox-info" })
</div>
<div>
    @Html.LabelFor(p => p.Category)
    @Html.DisplayFor(p => p.Category, new { @class = "textbox-info" })
</div>
<div>
    @Html.LabelFor(p => p.Info)
    @Html.DisplayFor(p => p.Info, new { @class = "textbox-info" })
</div>

<div>
    <div style="margin: 0px 0px 10px 0px; font-family: Cambria; font-size: 21px; font-weight: 300"></div>
    @if(ViewBag.Image != true) {
        <img width="150" height="150" src="@Url.Action("GetImage", "Home", new { id = ViewBag.id, value = ViewBag.value })" />
    } else {
        <div style="margin: 0px 0px 10px 0px; font-family: Cambria; font-size: 18px; font-weight: 300">No photos available</div>
    }
</div>

@Html.ActionLink("Go back to add more", "Add")
